﻿<%@ Control Language="C#" Inherits="Web.Control.WWW.files.UpdateFile" %>
<% if(DocModel != null){ %>
<div class="common">
	<div id="new_body">
		<div id="body_900">
			<div id="body_left"></div>
			<div id="body_main">
				<div class="Center9001">
					<div class="Center9001Right">
						<div id="Title">
							<div><span class="h1"><%=GetText("SF104")%></span> <span class="grey12"><%=GetText("AS128")%></span></div>
						</div>
						<div class="Center9001Content">
							<div class="Content628">
								<p><span class="Black16B"><%=GetText("C0106")%>:*</span><input id="text_title" name="txtTitle" type="text" value="<%=HttpUtility.HtmlEncode(DocModel.Title) %>"  class="input_answer_l" /><span id="span_title_error" style="color: Red; display: none;" class="red10"><%=GetText("SF313")%></span></p>
								<p><span class="Black16B"><%=GetText("SF105")%>:*</span> 
									<select id="slct_learn" name="learLang">
									<option value=""><%=GetText("C0061")%>...</option>
									<%= GetLanguageSelect(DocModel.LanguageLearn) %>
								</select>
								<span id="span_learn_error" style="color: Red; display: none;" class="red10"><%=GetText("WK140")%></span>
								</p>
								<p><span class="Black16B"><%=GetText("SF106")%>*</span>
									<select id="slct_using" name="baseLang">
									<option value=""><%=GetText("C0061")%>...</option>
									<%= GetLanguageSelect(DocModel.BaseLanguage) %>
								</select>
								<span id="span_using_error" style="color: Red; display: none;" class="red10"><%=GetText("WK141")%></span>
								</p>
								<p><span class="black16B"><%=GetText("C0018")%>:</span> (<%=GetText("C0043")%>)
								<input value="1" name="level"  type="checkbox" <%= DocModel.Level.IndexOf('1') >= 0 ? "checked=checked" : "" %> /><%=GetText("C0019")%>
								<input value="2" name="level"  type="checkbox" <%= DocModel.Level.IndexOf('2') >= 0 ? "checked=checked" : "" %> /><%=GetText("C0020")%>
								<input value="3" name="level"  type="checkbox" <%= DocModel.Level.IndexOf('3') >= 0 ? "checked=checked" : "" %> /><%=GetText("C0021")%>
								<input value="4" name="level"  type="checkbox" <%= DocModel.Level.IndexOf('4') >= 0 ? "checked=checked" : "" %> /><%=GetText("C0022")%>

								</p>
								<p><span class="black16B"><%=GetText("C0112")%>:</span> (<%=GetText("C0043")%>) <textarea id="texta_desc" name="txtDesc"  rows="4" class="input_answer_l"><%= DocModel.Desc %></textarea>
								<p><span class="black16B"><%=GetText("C0107")%>:</span> (<%=GetText("C0043")%>) <br />
								<table width="90%" border="0" cellspacing="3" cellpadding="0">
								  <tr>
									<td width="20%"><input type="checkbox" name="tags" value="Advance" <% for(int i = 0;i<TagList.Count;i++){if(TagList[i] == "Advance"){Response.Write("checked=\"checked\"");TagList.Remove(TagList[i]);break;}} %> /><%=GetText("WK600")%></td>
									<td width="20%"><input type="checkbox" name="tags" value="Beginner" <% for(int i = 0;i<TagList.Count;i++){if(TagList[i] == "Beginner"){Response.Write("checked=\"checked\"");TagList.Remove(TagList[i]);break;}} %> /><%=GetText("WK601")%></td>
									<td width="20%"><input type="checkbox" name="tags" value="Conversation" <% for(int i = 0;i<TagList.Count;i++){if(TagList[i] == "Conversation"){Response.Write("checked=\"checked\"");TagList.Remove(TagList[i]);break;}} %> /><%=GetText("WK602")%></td>
									<td width="20%"><input type="checkbox" name="tags" value="Dictionary" <% for(int i = 0;i<TagList.Count;i++){if(TagList[i] == "Dictionary"){Response.Write("checked=\"checked\"");TagList.Remove(TagList[i]);break;}} %> /><%=GetText("WK603")%></td>
									<td width="20%"><input type="checkbox" name="tags" value="Exercises" <% for(int i = 0;i<TagList.Count;i++){if(TagList[i] == "Exercises"){Response.Write("checked=\"checked\"");TagList.Remove(TagList[i]);break;}} %> /><%=GetText("WK604")%></td>
								  </tr>
								  <tr>
									<td><input type="checkbox" name="tags" value="Grammar" <% for(int i = 0;i<TagList.Count;i++){if(TagList[i] == "Grammar"){Response.Write("checked=\"checked\"");TagList.Remove(TagList[i]);break;}} %> /><%=GetText("WK605")%></td>
									<td><input type="checkbox" name="tags" value="Intermediate" <% for(int i = 0;i<TagList.Count;i++){if(TagList[i] == "Intermediate"){Response.Write("checked=\"checked\"");TagList.Remove(TagList[i]);break;}} %> /><%=GetText("WK606")%></td>
									<td><input type="checkbox" name="tags" value="Lesson" <% for(int i = 0;i<TagList.Count;i++){if(TagList[i] == "Lesson"){Response.Write("checked=\"checked\"");TagList.Remove(TagList[i]);break;}} %> /><%=GetText("WK607")%></td>
									<td><input type="checkbox" name="tags" value="Listening" <% for(int i = 0;i<TagList.Count;i++){if(TagList[i] == "Listening"){Response.Write("checked=\"checked\"");TagList.Remove(TagList[i]);break;}} %> /><%=GetText("WK608")%></td>
									<td><input type="checkbox" name="tags" value="Pronunciation" <% for(int i = 0;i<TagList.Count;i++){if(TagList[i] == "Pronunciation"){Response.Write("checked=\"checked\"");TagList.Remove(TagList[i]);break;}} %> /><%=GetText("WK609")%></td>
								  </tr>
								  <tr>
									<td><input type="checkbox" name="tags" value="Reading" <% for(int i = 0;i<TagList.Count;i++){if(TagList[i] == "Reading"){Response.Write("checked=\"checked\"");TagList.Remove(TagList[i]);break;}} %> /><%=GetText("WK610")%></td>
									<td><input type="checkbox" name="tags" value="Speaking" <% for(int i = 0;i<TagList.Count;i++){if(TagList[i] == "Speaking"){Response.Write("checked=\"checked\"");TagList.Remove(TagList[i]);break;}} %> /><%=GetText("WK611")%></td>
									<td><input type="checkbox" name="tags" value="Tones" <% for(int i = 0;i<TagList.Count;i++){if(TagList[i] == "Tones"){Response.Write("checked=\"checked\"");TagList.Remove(TagList[i]);break;}} %> /><%=GetText("WK612")%></td>
									<td><input type="checkbox" name="tags" value="Vocabulary" <% for(int i = 0;i<TagList.Count;i++){if(TagList[i] == "Vocabulary"){Response.Write("checked=\"checked\"");TagList.Remove(TagList[i]);break;}} %> /><%=GetText("WK613")%></td>
									<td><input type="checkbox" name="tags" value="Writing" <% for(int i = 0;i<TagList.Count;i++){if(TagList[i] == "Writing"){Response.Write("checked=\"checked\"");TagList.Remove(TagList[i]);break;}} %> /><%=GetText("WK614")%></td>
								  </tr>
							  </table><br /><input type="text" id="text_tags" name="txtTags" value="<% for (int i = 0; i < TagList.Count; i++) { Response.Write((i <= 0 ? "" : " ") + TagList[i]); } %>"  class="common100D" /><br /><span class="grey12"><%=GetText("AS044")%></span>
							  	</p>
								<p><input type="submit" value="<%=GetText("C0055")%>" class="button" /> <input name="" value="<%=GetText("C0056")%>" type="button" class="buttong" onclick="history.back()" /></p>
							</div>
						</div>
					</div>
					<div class="Center9001Left" >
						<div class="right_layerA margin20T">
							<div class="layer_contentA">
								<h4><%=GetText("SF102")%>:</h4>
								<div class="layer_contentA5">
								<p>Office: <img src="/Images/application_msword_16.gif" align="absmiddle" /> doc, <img src="/Images/application_vnd.ms-powerpoint_16.gif" align="absmiddle" /> ppt, <img src="/Images/application_vnd.ms-powerpoint_16.gif" align="absmiddle" /> pps, <img src="/Images/application_vnd.ms-excel_16.gif" align="absmiddle" /> xls</p>
								<p>PDF: <img src="/Images/application_pdf_16.gif" align="absmiddle" /> pdf, ps</p>
								<p>Text: <img src="/Images/text_plain_16.gif" align="absmiddle" /> txt, <img src="/Images/text_plain_16.gif" align="absmiddle" /> rtf</p>
								<p>HTML: <img src="/Images/text_html_16.gif" align="absmiddle" /> html, <img src="/Images/text_html_16.gif" align="absmiddle" /> htm</p>
								<p><span class="pink12"><strong><%=GetText("SF305")%></strong></span></p>
								<p><strong><%=GetText("SF103")%></strong><br /><%=GetText("SF306")%></p></div>
							</div>
						</div>
					</div>
					<div class="clear"></div>
				</div>
			</div>
			<div id="body_right"></div>
			<div class="clear"></div>
		</div>
		<div id="body_900F"></div>
	</div>
</div>
<input type="hidden" name="docid" value="<%= DocModel.DocID %>" />
<input type="hidden" name="action" value="update" />
<% } %>